home *** CD-ROM | disk | FTP | other *** search
/ Games of Daze / Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso / x2ftp / msdos / watcom / w_modey / yblitbuf.hpp < prev    next >
Encoding:
C/C++ Source or Header  |  1994-02-12  |  1.1 KB  |  36 lines

  1. #ifndef Y_BLITBUF_HPP
  2.     #define Y_BLITBUF_HPP
  3.  
  4. #include "ytypes.hpp"
  5.  
  6. // Basic BlitBuf functions
  7. void clear_blitbuf(blitbuf *buf);
  8. void fill_blitbuf(BYTE color, blitbuf *buf);
  9. void alloc_blitbuf(blitbuf *buf, DIST xsize, DIST ysize);
  10.  
  11. // Adjust color in blitbuf
  12. void greyscale_blitbuf(blitbuf *buf);
  13. void RGB_blitbuf(blitbuf *buf);
  14.  
  15. // Image processing: These expect a linear blitbuf
  16. void scale_blitbuf(DIST dest_x, DIST dest_y,
  17.     blitbuf *buf1, blitbuf *buf2 = NULL);
  18. void vertical_scale_blitbuf(DIST dest_y, blitbuf *buf1, blitbuf *buf2 = NULL);
  19. void flip_vertical_blitbuf(blitbuf *buf);
  20. void flip_horizontal_blitbuf(blitbuf *buf);
  21. void scale_scanline(BYTE *source, BYTE *dest, DIST smap_size,
  22.     DIST dmap_size, DIST dline_size);
  23.  
  24. void bitblit(COORD x, COORD y, blitbuf *buf);
  25. void getblit(COORD x, COORD y, blitbuf *buf);
  26.  
  27. // Transparent blits must be aligned and 0 is the "transparent" value
  28. void transparent_bitblitX(COORD x, COORD y, blitbuf *buf);
  29.  
  30. // PCX functions
  31. void save_blitbufPCX(char *fname, blitbuf *buf);
  32. int  load_blitbufPCX(char *fname, blitbuf *buf);
  33.  
  34. #endif
  35.  
  36.